package com.example.test.加载bean的方式.方式一;

import org.springframework.stereotype.Component;

/**
 * @author 晓果冻
 * @version 1.0
 * @date 2022/4/13 21:08
 */
//@Component
public class User {
    private String name = "张三";

    public User() {
    }

    public User(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
